-- GENERATED SPELL FOR [King Ping] --


function spell0_32398(pUnit, Event) --@Belly Flop,n/a--
pUnit:FullCastSpellOnTarget(61115,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32398', 675, 1)
end

function spell1_32398(pUnit, Event) --@Flipper Thwack,n/a--
pUnit:FullCastSpellOnTarget(50169,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32398', 540, 1)
end

function Sorts_32398(pUnit, Event)
local choix_sorts_32398 = math.random(0, 1)
if choix_sorts_32398 == 0 then
pUnit:RegisterEvent('spell0_32398', 1, 1)
end
if choix_sorts_32398 == 1 then
pUnit:RegisterEvent('spell1_32398', 1, 1)
end
end

function mob32398_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32398', math.random(1500, 3000), 1)
end

function mob32398_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32398_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32398_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32398, 1, 'mob32398_Action')
RegisterUnitEvent(32398, 2, 'mob32398_Leave')
RegisterUnitEvent(32398, 3, 'mob32398_Kill')
RegisterUnitEvent(32398, 4, 'mob32398_Die')
